#include "cacheCommon.h"
#include "cachePagemap.h"

int main()
{
    pageMap3<PAGEBITS> m1;

    m1.ensure(34343912976, 10);

    qSpan* sp1 = new qSpan;
    std::cout << "sp1: " << sp1 << std::endl;
    m1.set(34343912976, sp1);

    qSpan* sp2 = new qSpan;
    std::cout << "sp2: " << sp2 << std::endl;
    m1.set(34343912977, sp2);

    sp2 = reinterpret_cast<qSpan*>(m1.get(34343912976));
    std::cout << "sp2: " << sp2 << std::endl;
    sp1 = reinterpret_cast<qSpan*>(m1.get(34343912977));
    std::cout << "sp1: " << sp1 << std::endl;

    return 0;
}